package org.example.lotterysystem.dao.dataobject;

import java.util.Objects;

public class ActivityPrizeDo extends BaseDO{
    /**
     * 关联的活动id
     */
    private Long activityId;

    /**
     * 关键的奖品id
     */
    private Long prizeId;
    /**
     * 奖品数量
     */
    private Long prizeAmount;
    /**
     * 奖品等级
     */
    private String prizeTiers;
    /**
     * 奖品状态
     */
    private String status;

    @Override
    public boolean equals(Object object) {
        super.equals(object);
        if (this == object) return true;
        if (object == null || getClass() != object.getClass()) return false;
        ActivityPrizeDo that = (ActivityPrizeDo) object;
        return Objects.equals(activityId, that.activityId) && Objects.equals(prizeId, that.prizeId) && Objects.equals(prizeAmount, that.prizeAmount) && Objects.equals(prizeTiers, that.prizeTiers) && Objects.equals(status, that.status);
    }

    @Override
    public int hashCode() {
        super.hashCode();
        return Objects.hash(activityId, prizeId, prizeAmount, prizeTiers, status);
    }

    public Long getActivityId() {
        return activityId;
    }

    public void setActivityId(Long activityId) {
        this.activityId = activityId;
    }

    public Long getPrizeId() {
        return prizeId;
    }

    public void setPrizeId(Long prizeId) {
        this.prizeId = prizeId;
    }

    public Long getPrizeAmount() {
        return prizeAmount;
    }

    public void setPrizeAmount(Long prizeAmount) {
        this.prizeAmount = prizeAmount;
    }

    public String getPrizeTiers() {
        return prizeTiers;
    }

    public void setPrizeTiers(String prizeTiers) {
        this.prizeTiers = prizeTiers;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
